package com.haoze.nurse.feign;

import com.haoze.nurse.vo.EmrFile;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author embed
 */
@Service
@Headers({"Content-Type:application/json"})
@FeignClient(name = "api-nurseapp")
public interface NurseAppFeignService {
    @PostMapping(value = "/nurseapp/nurseFileIndex/save")
    String saveFileIndex(@RequestBody EmrFile emrFile);

    /**
     * 获取文书内容
     * @param emrFileId
     * @return
     */
    @RequestMapping(value = "/nurseapp/nurseFileIndex/getFileIndex", method = RequestMethod.GET)
    EmrFile getFileIndex(@RequestParam("emrFileId") String emrFileId);
}
